package com.zlm.tools.service;

import com.zlm.tools.event.RegisterEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

/**
 * {@code }
 *
 * @author zlm
 * @since 2025/5/30
 */
@Service
public class GiftService {

    @EventListener
    public void onRegister(RegisterEvent registerEvent) {
        String username = registerEvent.getUsername();
        System.out.println("给用户" + username + "发送新手礼包");

    }
}
